package sw6.visualschedule.extendedViews;

import sw6.visualschedule.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class StepView extends LinearLayout {
	
	//Views
	private transient TextView mText;
	private transient ImageView mImage;
	private transient ImageButton mDoneButton;
	
	/**
	 * Constructs a step view.
	 * @param context the context to run in.
	 */
	public StepView(final Context context) {
		super(context);
		
		final LayoutInflater layoutInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		layoutInflater.inflate(R.layout.stepview, this);
		
		mText = (TextView)findViewById(R.id.stepview_text);
		mImage = (ImageView)findViewById(R.id.stepview_image);
		mDoneButton = (ImageButton)findViewById(R.id.stepview_done_button);
	}

	public void setText(final TextView mText) {
		this.mText = mText;
	}

	public TextView getText() {
		return mText;
	}

	public void setImage(final ImageView mImage) {
		this.mImage = mImage;
	}

	public ImageView getImage() {
		return mImage;
	}

	public ImageButton getDoneButton() {
		return mDoneButton;
	}
	
	public void setDoneButton(final ImageButton doneButton) {
		this.mDoneButton = doneButton;
	}
}
